c093839648e4f4fda5b75eaa6eca62b1fdfade5e,src/main/java/org/seleniumhq/selenium/fluent/Internal.java,BaseTestableObject,baseShouldNotBe,#T#,1185
Before Change
}
public void baseShouldNotBe(final T shouldNotBe) {
Context ctx = Context.singular(context, "shouldNotBe", null, shouldNotBe);
validateWrapRethrow(new Internal.Validation() {
@Override
public void validate(long start) {
assignValueIfNeeded();
if (shouldNotBe.equals(is) && within != null) {
boolean passed;
long endMillis = calcEndMillis();
do {
is = execution.doExecution();
passed = is != null && !is.equals(shouldNotBe);
} while (System.currentTimeMillis() < endMillis && !passed);
}
assertThat(durationIfNotZero(start), (T) is, not(equalTo(shouldNotBe)));
}
}, ctx);
}
}
After Change
}
public void baseShouldNotBe(final T shouldNotBe) {
validateWrapRethrow(new ShouldNotBeValidation<T>(shouldNotBe),
Context.singular(context, "shouldNotBe", null, shouldNotBe));
}
private class ShouldNotBeValidation<T> extends Validation {